using System;
using System.Xml.Schema;
using System.Xml.Serialization;
using flickr.api.communication;

namespace flickr.api
{
    [Serializable]
    public class Photoset : FlickrObject
    {
        public Photoset():base(){}
        public Photoset(FlickrConnection connection) : base(connection){}
        
        [XmlAttribute("id", Form=XmlSchemaForm.Unqualified)]
        public string PhotosetId;

        [XmlAttribute("url", Form=XmlSchemaForm.Unqualified)]
        public string Url;

        [XmlAttribute("owner", Form=XmlSchemaForm.Unqualified)]
        public string OwnerId;

        [XmlAttribute("primary", Form=XmlSchemaForm.Unqualified)]
        public string PrimaryPhotoId;

        [XmlAttribute("secret", Form=XmlSchemaForm.Unqualified)]
        public string Secret;

        [XmlAttribute("server", Form=XmlSchemaForm.Unqualified)]
        public int Server;

        [XmlAttribute("photos", Form=XmlSchemaForm.Unqualified)]
        public int NumberOfPhotos;

        [XmlElement("title", Form=XmlSchemaForm.Unqualified)]
        public string Title;

        [XmlElement("description", Form=XmlSchemaForm.Unqualified)]
        public string Description;

        [XmlElement("photo", Form=XmlSchemaForm.Unqualified)]
        public Photo[] PhotoCollection = new Photo[0];
    }
}